home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 52
/
Amiga Format AFCD52 (Issue 136, May 2000).iso
/
-in_the_mag-
/
multitasking
/
priorities
/
taskpri
/
taskpri.doc
< prev
next >
Wrap
Text File
|
2000-03-05
|
4KB
|
98 lines
*****************
*************** TaskPri Doc ***************
* ** ** *
* *************** *
* ** ** *
*************** V 1.00 ***************
*****************
-------------------------------------------------------------------------------
Function: Lets the user change task priorities by giving the task name
-------- with its associated priority. Note that the name is case
sensitive and must be stated completely. CLI only.
Requirements: Any Amiga with Kickstart 1.3 or 2.0.
------------
Author: Steve Anderson
------
Date: August 23, 1991
----
***************************************************************************
* This program and the accompanying source is freeware and can be used, *
* altered and ripped however you like. Enjoy! *
***************************************************************************
-------------------------------------------------------------------------------
Purpose:
-------
Why does this program exist? Because it is needed. I often wanted to
change the priorities of tasks, but the AmigaDOS ChangeTaskPri command will
only let you alter the priorities of the current CLI (at least the 1.3
version). Any other similar programs will only let you alter the pri's of
active shells, not individual sub-tasks. The monitors like Amiga Realtime
Monitor are great if you want to do it once, but what if you want to change
the priority of a task permanently ... that's where TaskPri comes in.
For example, if you always want to boot up with 'RexxMaster' having
a priority of 8 instead of 4, you would place the following command in your
startup-sequence:
TaskPri RexxMaster 8
TaskPri can also handle different tasks with identical names. Say you
wanted to change the priority of the second 'trackdisk.device' from 5 to
10, but leave the first one alone. Then use this command:
TaskPri trackdisk.device 5 trackdevice 10
In fact, you should be able to set the priorities of as many tasks as you
like on the one command line, up to a limit of 60 tasks! And if you need
more, just invoke TaskPri again! I doubt anyone will be running more than
60 tasks with the same name so this limit should be more than enough.
-------------------------------------------------------------------------------
Template:
--------
TaskPri ;*** displays all tasks and their priorities
TaskPri ? ;*** template/usage
TaskPri NAME PRI [ [NAME PRI] ... ] ;*** change task pri and show change
-------------------------------------------------------------------------------
Info:
----
This program was typed in CygnusEd Professional, compiled with
SAS/C v5.10a, and debugged with the CodeProbe Debugger all through an ARexx
integrated environment. I would like to optimize the size by rewriting
some of the routines in assembler, but that depends on time ...
-------------------------------------------------------------------------------
If you have any questions, comments or ideas my address is;
Steve Anderson
58 GrayStone Drive
Hamilton, Ontario
L9C 4R8
CANADA
-------------------------------------------------------------------------------